package com.situ.day23.factory2;

public class Deno {

    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        //IKeyboardFactory keyboardFactory = new DellKeyboardFactory();
        IKeyboardFactory keyboardFactory = (IKeyboardFactory) Class.forName("com.situ.day23.factory2.DellKeyboardFactory").newInstance();

        IKeyboard keyboard = keyboardFactory.createKeyboard();
        keyboard.input();
        keyboard.print();
    }
}
